home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / startup.js < prev   
Encoding:
JavaScript  |  2005-04-04  |  406 b   |  17 lines

  1. // JavaScript startup file
  2.  
  3.  
  4. // Function:        R3ToJS()
  5. // Syntax:          jsobj = GetJS(public name);
  6. // Description:     Given public object name, JSGet() returns the corresponding JavaScript object
  7. // Example:         primLayer = GetJS("CurrentProject.Geometrics");
  8.  
  9.  
  10. function GetJS(name) { 
  11.     r3obj = Get(name); 
  12.     if(r3obj == 0)
  13.         return 0; 
  14.     return R3ToJS(r3obj);
  15. }
  16.  
  17.